<?php
// $Id: views-view-fields.tpl.php,v 1.6.6.1 2010/12/04 07:39:35 dereine Exp $
/**
 * @file views-view-fields.tpl.php
 * Default simple view template to all the fields as a row.
 *
 * - $view: The view in use.
 * - $fields: an array of $field objects. Each one contains:
 *   - $field->content: The output of the field.
 *   - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
 *   - $field->class: The safe class id to use.
 *   - $field->handler: The Views field handler object controlling this field. Do not use
 *     var_export to dump this object, as it can't handle the recursion.
 *   - $field->inline: Whether or not the field should be inline.
 *   - $field->inline_html: either div or span based on the above flag.
 *   - $field->wrapper_prefix: A complete wrapper containing the inline_html to use.
 *   - $field->wrapper_suffix: The closing tag for the wrapper.
 *   - $field->separator: an optional separator that may appear before a field.
 *   - $field->label: The wrap label text to use.
 *   - $field->label_html: The full HTML of the label to use including
 *     configured element type.
 * - $row: The raw result object from the query, with all data it fetched.
 *
 * @ingroup views_templates
 */
?>
<?php
$content = array();
$title = "";
//Hinh 
$entity_id= "";
//Description
$entity_id_1 = "";
//Price
$entity_id_2 = "";
//Detail link
$view_node = "";

?>
<?php foreach ($fields as $id => $field): ?>

  <?php if (!empty($field->separator)): ?>
    <?php //$content[$id] .= $field->separator; ?>
  <?php endif; ?>

  <?php //$content[$id] .= $field->wrapper_prefix; ?>
    <?php $content[$id] .= $field->label_html; ?>
    <?php $content[$id] .= $field->content; ?>
  <?php $content[$id] .= $field->wrapper_suffix; ?>
<?php endforeach; ?>

	<?php print $content['entity_id']; ?>
	<div class="product-details">
		<h2 class="product-name">
			<?php print $content['title']; ?>
		</h2>
		<?php print $content['entity_id_1']; ?>
	</div>
	<div class="product_price">
		<div class="grid-5">
			&nbsp;
		</div>
		<div class="grid-5">
			<div class="fleft price"><?php print $content['entity_id_2']; ?></div>
			<div class="fright">
				<?php print $content['view_node']; ?>
			</div>
		</div>
</div>
